package com.hy.admin.service;

import com.hy.admin.entity.CourseCommentEntity;
import com.hy.admin.entity.CourseEntity;
import com.hy.admin.helper.response.CommentResponse;
import com.hy.core.response.ServicesResult;

import java.util.List;

/**
 * Created by yangqq on 18/4/5.
 */
public interface CommentService {

    /**
     * 分页查询评论
     * @param courseId
     * @param pageNum
     * @param pageSize
     * @return
     */
    ServicesResult<List<CommentResponse>> commentList(
            Long courseId, Integer pageNum, Integer pageSize);

    /**
     * 添加评论
     * @param comment
     * @return
     */
    ServicesResult<Boolean> addComment(CourseCommentEntity comment);

    Integer commentCount(Long courseId);
}
